﻿using System;

namespace Lists
{
    class ListNode<T>
    {
        public ListNode<T> Next;
        public T Data;        

        public ListNode(T data, ListNode<T> node)
        {
            Data = data;
            Next = node;
        }

        public ListNode(T data)
            :this (data, null)
        {            
        }
    }
}
